primes = list();
ispr = [0 for i in range(10000)];
for i in range(2, 10000):
	if ispr[i] == 0:
		primes.append(i);
		for j in range(i * i, 10000, i):
			ispr[j] = 1;
for i in range(100):
	print(primes[i],end = " ");